// GPSPositionDlg.h : header file
//

#pragma once

#include "Gps.h"
#include "Gpsapi.h"
#include "afxwin.h"
#include "GoogleMap.h"

// CGPSPositionDlg dialog
class CGPSPositionDlg : public CDialog
{
// Construction
public:
	CGPSPositionDlg(CWnd* pParent = NULL);	// standard constructor
	~CGPSPositionDlg() { if (m_pGps) delete m_pGps; };
// Dialog Data
	enum { IDD = IDD_GPSPOSITION_DIALOG };


protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
	afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
	DECLARE_MESSAGE_MAP()
public:
	void ListPosition(Gps::GPSCOORD * coord);
	void showPicture(CString filepath);
	CString getKeyword();

	afx_msg void OnBnClickedButton1();
private:
	CListBox m_liPos;
	Gps * m_pGps;
	GoogleMap * m_pMap;
	CMenu m_menu;
	CComboBox m_cbPoi;
	CStatic m_picMap;

public:
	afx_msg void OnStnClickedStaticBitmap();
};
